@page "/student/list"

@using StudentVideo.Client.Common.Attributes
@using System.ComponentModel.DataAnnotations;
@using System.ComponentModel;
@using StudentVideo.Shared.Dtos.Student;

@attribute [MenuMate("列表", 1)]

<div class="list">
   <CuForm TFormModel="StudentFindRequest" FormModel="@queryForm" OnSearchHandler="e => SearchList(e)">
   </CuForm>

   <div class="buttons">
        <Radio RadioButton Value="ButtonSize.Small">新增</Radio>
        <Radio RadioButton Value="ButtonSize.Small">Small</Radio>
   </div>

   <div class="table_box default_border">
      <Table @ref="_table" TItem="StudentFindResultItem" DataSource="@StudentList" Striped Resizable HidePagination AutoHeight>
         <Selection Fixed="ColumnFixPlacement.Left" Width="50px"></Selection>
         <PropertyColumn Property="e => e.Id" Width="120px" Fixed="ColumnFixPlacement.Left" Filterable></PropertyColumn>
         <PropertyColumn Property="e => e.Name" Width="100px"></PropertyColumn>
         <PropertyColumn Property="e => e.Sex" Width="80px"></PropertyColumn>
         <PropertyColumn Property="e => e.Major" Width="150px"></PropertyColumn>
         <PropertyColumn Property="e => e.SchoolYear" Width="120px">
         </PropertyColumn>
         <PropertyColumn Property="e => e.Semester" Width="120px"></PropertyColumn>

         <ActionColumn Title="操作" Fixed="ColumnFixPlacement.Right" Width="200px" Align="ColumnAlign.Center">
         </ActionColumn>
      </Table>
   </div>
</div>
